class Comment {
  boolean deleted
  Date postdate
  String postip
  String title
  Topic topic
  //ua_id
  User user
  Comment replyto
  transient message

  def getMessage() {
    Message.read(this.id)
  }

  static mapping = {
    table 'comments'
    version false
    topic column: 'topic'
    replyto column: 'replyto'
    user column: 'userid'
  }

  static constraints = {
  }
}
